<?php

namespace App\Models\MainDB;

use Illuminate\Database\Eloquent\Model;

class HappyGiftNextPool extends Model
{

    protected $table = 'ln_happy_gift_next_pool';     //数据库内完整表名

    protected $primaryKey = 'id';    //主键名

    protected $fillable = [
        'id',
        'gift_id',
        'number',
        'is_sold',//1上架2下架
        'type',
        'weight',//爆率
        'correction_number',//修正序号
        'remark',
        'created_at',
        'updated_at',
    ];

    public $timestamps = false;

    public function gift()
    {
        return $this->belongsTo('App\Models\MainDB\Gift', 'gift_id', 'id');
    }
}
